<template>
  <div class="joblist-componet">
    <block v-if="needtext !== false">
      <Line :text="msg"> </Line>
    </block>


    <div class="com-list">
      <block v-for="(item,index) in list" :key="index">
        <Job :job-info="item"> </Job>
      </block>
    </div>



  </div>



</template>
<script>
  import Job from '../Job'
  import Line from '../Line'
  export default {
    data(){
      return{
        msg : '为您推荐好职位',
        // jobList:[
        //   {url : '../../static/compicture.png' ,name:'苏州极鼎网络科技有限公司',ask:'18-45岁/男女不限/无不良嗜好',money:'5000-8000',address:'江苏-昆山',type:'小时工'},
        //   {url : '../../static/compicture.png' ,name:'苏州极鼎网络科技',ask:'18-45岁/男女不限/无不良嗜好',money:'5000-8000',address:'江苏-昆山',type:'返现'},
        //   {url : '../../static/compicture.png' ,name:'苏州极鼎网络科技有限公司',ask:'18-45岁/男女不岁/男女不岁/男女不岁/男女不岁/男女不限/无不良嗜好',money:'5000-8000',address:'江苏-昆山',type:'小时工'},
        //   {url : '../../static/compicture.png' ,name:'苏州极鼎网络科技有限公有限公科技有限公有限公科技有限公有限公科技有限公有限公有限公有限公有限公司',ask:'18-45岁/男女不限/无不良嗜好',money:'5000-8000',address:'江苏-昆山',type:'小时工'},
        // ]
      }
    },
    props:['needtext','list'],
    components:{
      Job,
      Line
    },
    mounted(){
    }
  }
</script>

<style scoped>
  .joblist-componet{
    display: flex;
    flex-direction: column;
    width: 100%;
  }


  .com-list{
    display: flex;
    flex-direction: column;
  }
</style>
